package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the KAOQINRULE database table.
 * 
 */
@Entity
@NamedQuery(name="Kaoqinrule.findAll", query="SELECT k FROM Kaoqinrule k")
public class Kaoqinrule implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="KAOQINRULE_KQRULEID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="KAOQINRULE_KQRULEID_GENERATOR")
	@Column(name="KQRULE_ID")
	private long kqruleId;

	@Column(name="KQRULE_DOWN")
	private String kqruleDown;

	@Column(name="KQRULE_KG")
	private BigDecimal kqruleKg;

	@Column(name="KQRULE_MARKS")
	private String kqruleMarks;

	@Column(name="KQRULE_NAME")
	private String kqruleName;

	@Column(name="KQRULE_PERSON")
	private String kqrulePerson;

	@Column(name="KQRULE_STARTDATE")
	private Timestamp kqruleStartdate;

	@Column(name="KQRULE_STATE")
	private BigDecimal kqruleState;

	@Column(name="KQRULE_UP")
	private String kqruleUp;

	@Column(name="KQRULE_UPDATE")
	private Timestamp kqruleUpdate;

	//bi-directional many-to-one association to Attendancerule
	@ManyToOne
	@JoinColumn(name="ATTRU_ID")
	private Attendancerule attendancerule;

	//bi-directional many-to-one association to Calcluaterule
	@ManyToOne
	@JoinColumn(name="CALCLUATERULE_ID")
	private Calcluaterule calcluaterule;

	public Kaoqinrule() {
	}

	public long getKqruleId() {
		return this.kqruleId;
	}

	public void setKqruleId(long kqruleId) {
		this.kqruleId = kqruleId;
	}

	public String getKqruleDown() {
		return this.kqruleDown;
	}

	public void setKqruleDown(String kqruleDown) {
		this.kqruleDown = kqruleDown;
	}

	public BigDecimal getKqruleKg() {
		return this.kqruleKg;
	}

	public void setKqruleKg(BigDecimal kqruleKg) {
		this.kqruleKg = kqruleKg;
	}

	public String getKqruleMarks() {
		return this.kqruleMarks;
	}

	public void setKqruleMarks(String kqruleMarks) {
		this.kqruleMarks = kqruleMarks;
	}

	public String getKqruleName() {
		return this.kqruleName;
	}

	public void setKqruleName(String kqruleName) {
		this.kqruleName = kqruleName;
	}

	public String getKqrulePerson() {
		return this.kqrulePerson;
	}

	public void setKqrulePerson(String kqrulePerson) {
		this.kqrulePerson = kqrulePerson;
	}

	public Timestamp getKqruleStartdate() {
		return this.kqruleStartdate;
	}

	public void setKqruleStartdate(Timestamp kqruleStartdate) {
		this.kqruleStartdate = kqruleStartdate;
	}

	public BigDecimal getKqruleState() {
		return this.kqruleState;
	}

	public void setKqruleState(BigDecimal kqruleState) {
		this.kqruleState = kqruleState;
	}

	public String getKqruleUp() {
		return this.kqruleUp;
	}

	public void setKqruleUp(String kqruleUp) {
		this.kqruleUp = kqruleUp;
	}

	public Timestamp getKqruleUpdate() {
		return this.kqruleUpdate;
	}

	public void setKqruleUpdate(Timestamp kqruleUpdate) {
		this.kqruleUpdate = kqruleUpdate;
	}

	public Attendancerule getAttendancerule() {
		return this.attendancerule;
	}

	public void setAttendancerule(Attendancerule attendancerule) {
		this.attendancerule = attendancerule;
	}

	public Calcluaterule getCalcluaterule() {
		return this.calcluaterule;
	}

	public void setCalcluaterule(Calcluaterule calcluaterule) {
		this.calcluaterule = calcluaterule;
	}

}